﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPMS.Commons.Configuration
{
    /// <summary>
    /// 配置节点处理接口
    /// </summary>
    /// <typeparam name="T">配置上下文的类型</typeparam>
    /// <remarks></remarks>
    /// <history>
    /// [zanezeng]   2008-11-13 11:52    Created
    /// </history>
    public interface IConfigurationNodeHandler<T>
    {
        #region ---Method

        /// <summary>
        /// 根据指定的上下文处理指定的节点
        /// </summary>
        /// <param name="node">配置节点</param>
        /// <param name="context">处理上下文</param>
        /// <returns>根据配置信息创建的对象</returns>
        /// <remarks></remarks>
        /// <history>
        /// [zanezeng]   2008-11-13 13:21    Created
        /// </history>
        object Porcess( IConfigurationNode node, T context );

        #endregion
    }
}
